//
//  PywInputView.h
//  PywSdk
//
//  Created by Jade on 4/8/16.
//  Copyright © 2016 zero. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PywInputTF.h"
typedef NS_OPTIONS(NSInteger, InputStyle){
    InputStyleDefault = 0,
    InputStyleSeparaLine = 1<<0
};

@interface PywInputView : UIView
@property (nonatomic,strong) PywInputTF *inputTF;
@property (nonatomic,strong) UIView                          *rightView;
@property (nonatomic,strong) UIView                          *leftView;
@property (nonatomic) UITextFieldViewMode                    rightViewMode;
@property (nonatomic,assign) id<UITextFieldDelegate>         delegate;
@property (nonatomic,copy) NSString                          *placeholder;
@property(nonatomic) BOOL                                    secureTextEntry;
@property (nonatomic,copy) NSString                          *text;
@property(nullable, nonatomic,strong) UIColor                *textColor;            // default is nil. use opaque black
@property(nullable, nonatomic,strong) UIFont                 *font;                 // default is nil. use system font 12 pt
@property (nonatomic, assign) NSTextAlignment textAlignment;


/**
 *  bing method to TextFiled
 *
 *  @param target
 *  @param action
 *  @param controlEvents
 */
- (void)addTarget:(nullable id)target
           action:(SEL)action
 forControlEvents:(UIControlEvents)controlEvents;


- (NSString *)getText;

@end
